@extends('admin.layout.layout')
@section('title')
<title>网站配置页面</title>
<script type="text/javascript" charset="utf-8" src="/public/baidu/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/public/baidu/ueditor.all.min.js"> </script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
    <script type="text/javascript" charset="utf-8" src="/public/baidu/lang/zh-cn/zh-cn.js"></script>
@stop
@section('content')

<div class="container">
<div class="col-lg-12">
    <h1 class="page-header">配置修改</h1>
</div>
      <form role="form" class="form-horizontal col-md-7 col-md-offset-3" action={{url('/admin/webconfig/update')}} method="post"  enctype="multipart/form-data">
      {{csrf_field()}}
        
                            <div class="form-group">
                              <label for="inputPassword1" class="col-lg-2  col-sm-2 cont@rol-label">&nbsp;网站标题</label>
                                <div class="col-lg-10">
                                    <input name="wztit" type="text" class="form-control" id="inputPassword1" value="{{$conf->wztit}}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword1" class="col-lg-2 col-sm-2 control-label">网站关键词</label>
                                <div class="col-lg-10">
                                    <input name="wzkws" type="text" class="form-control" id="inputPassword1" value="{{ $conf->wzkws }}">
                                </div>
                            </div>
                           <div class="form-group">
                                <label for="exampleInputFile2" class="col-lg-2 col-sm-2 control-label">网站Log</label>
                                                <div class="col-lg-10">
                                <input name="wzlog" type="file">
                                <input name="rlog" type="hidden" id="exampleInputFile2" value="{{ $conf->wzlog}}">
                                <img src="{{ $conf->wzlog}}"width=300px;height=300px;>

                                </div>
                             </div> 
							<div class="form-group">
                                <label for="exampleInputFile2" class="col-lg-2 col-sm-2 control-label">网站版权</label>
                                <div class="col-lg-10">
                                <input name="wzbq" type="text" value="{{$conf->wzbq}}" class="form-control" id="exampleInputFile2" >
                                </div>
                             </div>		
                            <div class="form-group">
                                <label for="inputPassword1" class="col-lg-2 col-sm-2 control-label">网站描述</label>
                                <div class="col-lg-10">
                                    <input name="wzdesc" type="text" value="{{$conf->wzdesc}}" class="form-control" id="exampleInputFile2" >
                                    
                                </div>
                            </div>
							<div class="form-group">
                                <label for="exampleInputFile2" class="col-lg-2 col-sm-2 control-label">网站开关</label>
                                <div class="col-lg-10">
                                <select class="form-control m-bot15" id="inputSuccess" name="wzsw">
                                <option value="1" @if($conf->wzsw == 1){ selected }@endif>开</option>
                                <option value="2"@if($conf->wzsw == 2){ selected }@endif>关</option>
                            </select>
                                </div>
                             </div>
                            <div class="form-group">
                                <div class="col-lg-offset-2 col-lg-10">
                                    <button class="btn btn-primary">确认添加</button>
                                    
                                </div>
                            </div>
        {{ csrf_field() }}
      </form>
</div>
<script type="text/javascript">
    //实例化编辑器
    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
    var ue = UE.getEditor('editor',{
    toolbars: [
    ['fullscreen', 'source', 'undo', 'redo']
   
]
    });
</script>
@stop